@extends('default.mobile.layouts.companyPublic')
@section('title','搜索器列表-'.Site::get('webname'))
{{--首页css--}}
@section('headcss')
    @parent
    <link rel="stylesheet" href="{{asset('/default/css/mobile/company/common.css')}}">
@endsection
{{--头部标签--}}
@section('tag','搜索器列表')

{{--主体内容--}}
@section('content')
    <!-- b搜索器列表 -->
    <div class="fill">
        @if(count($companySearch) > 0)
            <ul>
                @foreach($companySearch as $v)
                    <li><a href="{{$v->search_link}}"><span class="title">{{str_limit($v->search_name,16)}}</span><span class="tip">{{$v->updated_at}}</span></a></li>
                @endforeach
            </ul>
        @else
            <div class="list_empty">
                <span class="norecord"></span>
                <span class="sorry">抱歉，您还没有添加搜索器记录！</span>
            </div>
        @endif
    </div>

    <!-- B分页 -->
    <div class="page">
        @if($companySearch->currentPage() <= 1)
            <a class="btn_gary previous ">上一页</a>
        @else
            <a href="{{$companySearch->previousPageUrl()}}" class="previous">上一页</a>
        @endif
        <span><em>{{$companySearch->currentPage()}}</em>/{{$companySearch->lastPage()}}</span>
        @if($companySearch->currentPage()  ==  $companySearch->lastPage())
            <a class="next btn_gary">下一页</a>
        @else
            <a href="{{$companySearch->nextPageUrl()}}" class="next">下一页</a>
        @endif
    </div>
    <!-- E分页 -->
@endsection

@section('footerjs')
    @parent
@endsection